<?php

class ManageModule extends CWebModule{
	public function init(){
		$this->setImport(array(
			'manage.models.*',
			'manage.components.*',
		));

		$this->layout = $this->getLayout();
		$this->setViewPath($this->getBasePath() . '/themes/' . MANGE_THEME);
	}
	
	public function getLayout($layout_name = 'layout_manage'){
		return 'application.modules.manage.themes.' . MANGE_THEME . '.layouts.' . $layout_name;
	}

	public function beforeControllerAction($controller, $action){
		if(parent::beforeControllerAction($controller, $action)){
			return true;
		}else{
			return false;
		}
	}
}
